<?php
	class Practice{
		
		public $id;
		public $user_id;
		public $profession_id;
		public $address_id;
		public $corp_number;
		public $web;
		public $gsm;
		public $phone;
		public $infotext;
		
		
		//User fields
		public $user_first_name;
		public $user_last_name;
		public $user_avatar;
		
		//Address fields
		public $address_street;
		public $address_house_number;
		public $address_box;
		public $address_city_name;
		
		//Location fields
		public $location_postal_number;
		public $location_id;
		
		//Profession fields
		public $profession_name;
		
		//Country fields
		public $country_id;
		
		//District fields
		public $district_id;
		
		public $lat;
		public $lng;
		//mapping with flex
		public $_explicitType = "classespinkpony.Practice";
		public function __construct($id, $user_id, $profession_id, $address_id, $corp_number, $web, $gsm, $phone, $infotext, $user_first_name, $user_last_name, $user_avatar, $address_street, $address_house_number, $address_box, $address_city_name, $location_postal_number, $profession_name, $country_id, $location_id, $district_id, $lat, $lng){
			
			$this->id = $id;
			$this->user_id = $user_id;
			$this->profession_id = $profession_id;
			$this->address_id = $address_id;
			$this->corp_number = $corp_number;
			$this->web = $web;
			$this->gsm = $gsm;
			$this->phone = $phone;
			$this->infotext = $infotext;
			
			//User fields
			$this->user_first_name = $user_first_name;
			$this->user_last_name = $user_last_name;
			$this->user_avatar = $user_avatar;
			
			//Address fields
			$this->address_street = $address_street;
			$this->address_house_number = $address_house_number;
			$this->address_box = $address_box;
			$this->address_city_name = $address_city_name;
			
			//Location fields
			$this->location_postal_number = $location_postal_number;
			$this->location_id = $location_id;

			//Profession fields
			$this->profession_name = $profession_name;
			
			//Country fields
			$this->country_id = $country_id;
			
			//District fields
			$this->district_id = $district_id;
			
			$this->lat = $lat;
			$this->lng = $lng;
		}
	}
	